export default{
  //用户登录信息
  userInfo(state,userInfo){
    state.userInfo = userInfo;
  },
  token(state,token){
    state.token = token;
  },
  rest_user_info(state){
    state.userInfo = {};
  },
  item(state,item){
    state.item = item;
  },
  updateItemStock(state,stock){
    state.item.stock = stock;
  },
  cartItemQuantity(state,quantity){
    state.cartItemQuantity = quantity;
  },
  cartItemList(state,cartItemList){
    state.cartItemList = cartItemList;
  },
  itemList(state,itemList){
    state.itemList = itemList;
  },
}
